package com.github.shuaidd.rest.runtime;

import com.fasterxml.jackson.databind.node.ObjectNode;
import org.activiti.app.model.common.ResultListDataRepresentation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController("lwfTaskQueryResource")
@RequestMapping("app")
public class TaskQueryResource extends AbstractTaskQueryResource {

    @Override
    @RequestMapping(value = "/rest/query/tasks", method = RequestMethod.POST, produces = "application/json")
    public ResultListDataRepresentation listTasks(@RequestBody ObjectNode requestNode) {
        return super.listTasks(requestNode);
    }

}
